import request from '@/utils/request'

export function DirectoryApi(data) {
    return request({
        url: '/DirectoryApi/post',
        method: 'post',
        data
    })
}
export function getTaskListApi(data) {
    return request({
        url: `/ConversionApi/getTaskList?number=${data.number}&intPage=${data.intPage}&state=${data.state}&email=${data.email}&username=${data.username}&SPEC=${data.SPEC}`,
        method: 'get',

    })
}

export function getTFileListApi(data) {
    return request({
        url: `/ConversionApi/getTFileList?number=${data.number}&intPage=${data.intPage}&TaskID=${data.TaskID}`,
        method: 'get',

    })
}

export function SearchFileApi(data) {
    return request({
        url: '/ConversionApi/post',
        method: 'post',
        data
    })
}

export function restartApi(data) {
    return request({
        url: '/MonitorTaskApi/post',
        method: 'post',
        data
    })
}
export function getTIRexecuteListApi(data) {
    return request({
        url: '/MonitorTaskApi/getTIRexecuteList?TaskRexecuteID=' + data,
        method: 'get',

    })
}
export function getTaskDListApi(data) {
    return request({
        url: `/MonitorTaskApi/getTaskDList?number=${data.number}&intPage=${data.intPage}&CIID=${data.CIID}&isRexecute=${data.isRexecute}&EventType=${data.EventType}`,
        method: 'get',

    })
}